-- GENERATED SPELL FOR [Crimson Guardsman] --


function spell0_10418(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10418', 5317, 1)
end

function spell1_10418(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10418', 8291, 1)
end

function spell2_10418(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(15749,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10418', 650, 1)
end

function Sorts_10418(pUnit, Event)
local choix_sorts_10418 = math.random(0, 2)
if choix_sorts_10418 == 0 then
pUnit:RegisterEvent('spell0_10418', 1, 1)
end
if choix_sorts_10418 == 1 then
pUnit:RegisterEvent('spell1_10418', 1, 1)
end
if choix_sorts_10418 == 2 then
pUnit:RegisterEvent('spell2_10418', 1, 1)
end
end

function mob10418_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10418', math.random(1500, 3000), 1)
end

function mob10418_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10418_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10418_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10418, 1, 'mob10418_Action')
RegisterUnitEvent(10418, 2, 'mob10418_Leave')
RegisterUnitEvent(10418, 3, 'mob10418_Kill')
RegisterUnitEvent(10418, 4, 'mob10418_Die')
